home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / SCSL / dstegr.z / dstegr
Encoding:
Text File  |  2002-10-03  |  9.8 KB  |  265 lines

  1.  
  2.  
  3.  
  4. DDDDSSSSTTTTEEEEGGGGRRRR((((3333SSSS))))                                                          DDDDSSSSTTTTEEEEGGGGRRRR((((3333SSSS))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      DSTEGR - compute selected eigenvalues and, optionally, eigenvectors of a
  10.      real symmetric tridiagonal matrix T
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      SUBROUTINE DSTEGR( JOBZ, RANGE, N, D, E, VL, VU, IL, IU, ABSTOL, M, W, Z,
  14.                         LDZ, ISUPPZ, WORK, LWORK, IWORK, LIWORK, INFO )
  15.  
  16.          CHARACTER      JOBZ, RANGE
  17.  
  18.          INTEGER        IL, INFO, IU, LDZ, LIWORK, LWORK, M, N
  19.  
  20.          DOUBLE         PRECISION ABSTOL, VL, VU
  21.  
  22.          INTEGER        ISUPPZ( * ), IWORK( * )
  23.  
  24.          DOUBLE         PRECISION D( * ), E( * ), W( * ), WORK( * ), Z( LDZ, *
  25.                         )
  26.  
  27. IIIIMMMMPPPPLLLLEEEEMMMMEEEENNNNTTTTAAAATTTTIIIIOOOONNNN
  28.      These routines are part of the SCSL Scientific Library and can be loaded
  29.      using either the -lscs or the -lscs_mp option.  The -lscs_mp option
  30.      directs the linker to use the multi-processor version of the library.
  31.  
  32.      When linking to SCSL with -lscs or -lscs_mp, the default integer size is
  33.      4 bytes (32 bits). Another version of SCSL is available in which integers
  34.      are 8 bytes (64 bits).  This version allows the user access to larger
  35.      memory sizes and helps when porting legacy Cray codes.  It can be loaded
  36.      by using the -lscs_i8 option or the -lscs_i8_mp option. A program may use
  37.      only one of the two versions; 4-byte integer and 8-byte integer library
  38.      calls cannot be mixed.
  39.  
  40. PPPPUUUURRRRPPPPOOOOSSSSEEEE
  41.      DSTEGR computes selected eigenvalues and, optionally, eigenvectors of a
  42.      real symmetric tridiagonal matrix T. Eigenvalues and
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.         (a) Compute T - sigma_i = L_i D_i L_i^T, such that L_i D_i L_i^T
  50.             is a relatively robust representation,
  51.         (b) Compute the eigenvalues, lambda_j, of L_i D_i L_i^T to high
  52.             relative accuracy by the dqds algorithm,
  53.         (c) If there is a cluster of close eigenvalues, "choose" sigma_i
  54.             close to the cluster, and go to step (a),
  55.         (d) Given the approximate eigenvalue lambda_j of L_i D_i L_i^T,
  56.             compute the corresponding eigenvector by forming a
  57.             rank-revealing twisted factorization.
  58.      The desired accuracy of the output can be specified by the input
  59.      parameter ABSTOL.
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. DDDDSSSSTTTTEEEEGGGGRRRR((((3333SSSS))))                                                          DDDDSSSSTTTTEEEEGGGGRRRR((((3333SSSS))))
  71.  
  72.  
  73.  
  74.      For more details, see "A new O(n^2) algorithm for the symmetric
  75.      tridiagonal eigenvalue/eigenvector problem", by Inderjit Dhillon,
  76.      Computer Science Division Technical Report No. UCB/CSD-97-971, UC
  77.      Berkeley, May 1997.
  78.  
  79.      Note 1 : Currently DSTEGR is only set up to find ALL the n eigenvalues
  80.      and eigenvectors of T in O(n^2) time
  81.      Note 2 : Currently the routine DSTEIN is called when an appropriate
  82.      sigma_i cannot be chosen in step (c) above. DSTEIN invokes modified
  83.      Gram-Schmidt when eigenvalues are close.
  84.      Note 3 : DSTEGR works only on machines which follow ieee-754 floating-
  85.      point standard in their handling of infinities and NaNs.  Normal
  86.      execution of DSTEGR may create NaNs and infinities and hence may abort
  87.      due to a floating point exception in environments which do not conform to
  88.      the ieee standard.
  89.  
  90.  
  91. AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  92.      JOBZ    (input) CHARACTER*1
  93.              = 'N':  Compute eigenvalues only;
  94.              = 'V':  Compute eigenvalues and eigenvectors.
  95.  
  96.      RANGE   (input) CHARACTER*1
  97.              = 'A': all eigenvalues will be found.
  98.              = 'V': all eigenvalues in the half-open interval (VL,VU] will be
  99.              found.  = 'I': the IL-th through IU-th eigenvalues will be found.
  100.  
  101.      N       (input) INTEGER
  102.              The order of the matrix.  N >= 0.
  103.  
  104.      D       (input/output) DOUBLE PRECISION array, dimension (N)
  105.              On entry, the n diagonal elements of the tridiagonal matrix T. On
  106.              exit, D is overwritten.
  107.  
  108.      E       (input/output) DOUBLE PRECISION array, dimension (N)
  109.              On entry, the (n-1) subdiagonal elements of the tridiagonal
  110.              matrix T in elements 1 to N-1 of E; E(N) need not be set.  On
  111.              exit, E is overwritten.
  112.  
  113.      VL      (input) DOUBLE PRECISION
  114.              VU      (input) DOUBLE PRECISION If RANGE='V', the lower and
  115.              upper bounds of the interval to be searched for eigenvalues. VL <
  116.              VU.  Not referenced if RANGE = 'A' or 'I'.
  117.  
  118.      IL      (input) INTEGER
  119.              IU      (input) INTEGER If RANGE='I', the indices (in ascending
  120.              order) of the smallest and largest eigenvalues to be returned.  1
  121.              <= IL <= IU <= N, if N > 0; IL = 1 and IU = 0 if N = 0.  Not
  122.              referenced if RANGE = 'A' or 'V'.
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. DDDDSSSSTTTTEEEEGGGGRRRR((((3333SSSS))))                                                          DDDDSSSSTTTTEEEEGGGGRRRR((((3333SSSS))))
  137.  
  138.  
  139.  
  140.      ABSTOL  (input) DOUBLE PRECISION
  141.              The absolute error tolerance for the eigenvalues/eigenvectors. IF
  142.              JOBZ = 'V', the eigenvalues and eigenvectors output have residual
  143.              norms bounded by ABSTOL, and the dot products between different
  144.              eigenvectors are bounded by ABSTOL. If ABSTOL is less than
  145.              N*EPS*|T|, then N*EPS*|T| will be used in its place, where EPS is
  146.              the machine precision and |T| is the 1-norm of the tridiagonal
  147.              matrix. The eigenvalues are computed to an accuracy of EPS*|T|
  148.              irrespective of ABSTOL. If high relative accuracy is important,
  149.              set ABSTOL to DLAMCH( 'Safe minimum' ).  See Barlow and Demmel
  150.              "Computing Accurate Eigensystems of Scaled Diagonally Dominant
  151.              Matrices", LAPACK Working Note #7 for a discussion of which
  152.              matrices define their eigenvalues to high relative accuracy.
  153.  
  154.      M       (output) INTEGER
  155.              The total number of eigenvalues found.  0 <= M <= N.  If RANGE =
  156.              'A', M = N, and if RANGE = 'I', M = IU-IL+1.
  157.  
  158.      W       (output) DOUBLE PRECISION array, dimension (N)
  159.              The first M elements contain the selected eigenvalues in
  160.              ascending order.
  161.  
  162.      Z       (output) DOUBLE PRECISION array, dimension (LDZ, max(1,M) )
  163.              If JOBZ = 'V', then if INFO = 0, the first M columns of Z contain
  164.              the orthonormal eigenvectors of the matrix T corresponding to the
  165.              selected eigenvalues, with the i-th column of Z holding the
  166.              eigenvector associated with W(i).  If JOBZ = 'N', then Z is not
  167.              referenced.  Note: the user must ensure that at least max(1,M)
  168.              columns are supplied in the array Z; if RANGE = 'V', the exact
  169.              value of M is not known in advance and an upper bound must be
  170.              used.
  171.  
  172.      LDZ     (input) INTEGER
  173.              The leading dimension of the array Z.  LDZ >= 1, and if JOBZ =
  174.              'V', LDZ >= max(1,N).
  175.  
  176.      ISUPPZ  (output) INTEGER ARRAY, dimension ( 2*max(1,M) )
  177.              The support of the eigenvectors in Z, i.e., the indices
  178.              indicating the nonzero elements in Z. The i-th eigenvector is
  179.              nonzero only in elements ISUPPZ( 2*i-1 ) through ISUPPZ( 2*i ).
  180.  
  181.      WORK    (workspace/output) DOUBLE PRECISION array, dimension (LWORK)
  182.              On exit, if INFO = 0, WORK(1) returns the optimal (and minimal)
  183.              LWORK.
  184.  
  185.      LWORK   (input) INTEGER
  186.              The dimension of the array WORK.  LWORK >= max(1,18*N)
  187.  
  188.              If LWORK = -1, then a workspace query is assumed; the routine
  189.              only calculates the optimal size of the WORK array, returns this
  190.              value as the first entry of the WORK array, and no error message
  191.              related to LWORK is issued by XERBLA.
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. DDDDSSSSTTTTEEEEGGGGRRRR((((3333SSSS))))                                                          DDDDSSSSTTTTEEEEGGGGRRRR((((3333SSSS))))
  203.  
  204.  
  205.  
  206.      IWORK   (workspace/output) INTEGER array, dimension (LIWORK)
  207.              On exit, if INFO = 0, IWORK(1) returns the optimal LIWORK.
  208.  
  209.      LIWORK  (input) INTEGER
  210.              The dimension of the array IWORK.  LIWORK >= max(1,10*N)
  211.  
  212.              If LIWORK = -1, then a workspace query is assumed; the routine
  213.              only calculates the optimal size of the IWORK array, returns this
  214.              value as the first entry of the IWORK array, and no error message
  215.              related to LIWORK is issued by XERBLA.
  216.  
  217.      INFO    (output) INTEGER
  218.              = 0:  successful exit
  219.              < 0:  if INFO = -i, the i-th argument had an illegal value
  220.              > 0:  if INFO = 1, internal error in DLARRE, if INFO = 2,
  221.              internal error in DLARRV.
  222.  
  223. FFFFUUUURRRRTTTTHHHHEEEERRRR DDDDEEEETTTTAAAAIIIILLLLSSSS
  224.      Based on contributions by
  225.         Inderjit Dhillon, IBM Almaden, USA
  226.         Osni Marques, LBNL/NERSC, USA
  227.  
  228.  
  229. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  230.      INTRO_LAPACK(3S), INTRO_SCSL(3S)
  231.  
  232.      This man page is available only online.
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.                                                                         PPPPaaaaggggeeee 4444
  262.  
  263.  
  264.  
  265.